<template>
  <el-image :src="imageUrl"></el-image>
</template>

<script setup>
import { computed } from "vue"
const props = defineProps({
  src: String
})
const imageUrl = computed(() => {
  if (props.src) {
    return import.meta.env.VITE_API_HOST + props.src
  }
  return "";
}) 
</script>

<style lang="scss" scoped></style>